<!DOCTYPE html>
<html>
<head>
    <title>页面布局示例</title>
    <style>
        html, body {
            margin: 0;
            padding: 0;
            height: 100%;
        }

        .container {
            position: relative; /* 设置容器为相对定位 */
            height: 100%;
        }

        .top, .bottom, .left, .right, .center {
            position: fixed; /* 设置各个子块为固定定位 */
        }

        .top {
            top: 0;
            left: 0;
            right: 0;
            height: 20%;
            background-color: lightblue;
        }

        .bottom {
            bottom: 0;
            left: 0;
            right: 0;
            height: 20%;
            background-color: lightgreen;
        }

        .left {
            top: 20%;
            bottom: 20%;
            left: 0;
            width: 20%;
            background-color: lightyellow;
        }

        .right {
            top: 20%;
            bottom: 20%;
            right: 0;
            width: 20%;
            background-color: lightpink;
        }

        .center {
            top: 20%;
            bottom: 20%;
            left: 20%;
            right: 20%;
            background-color: lightgray;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="top">上部分</div>
        <div class="bottom">下部分</div>
        <div class="left">左部分</div>
        <div class="right">右部分</div>
        <div class="center">中间部分</div>
    </div>
</body>
</html>

